package com.tql.mall.item.client;

import com.tql.mall.item.client.impl.ItemDegradeFeignClient;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.Map;

/**
 * @Author: tyk
 * @Date: 2023/5/22 21:14
 * @Description:
 */
@FeignClient(value = "service-item", fallback = ItemDegradeFeignClient.class)
public interface ItemFeignClient {
    @GetMapping("api/item/inner/{skuId}")
     Map<String, Object> getItem(@PathVariable Long skuId);
}
